<div id="barcodePrint">
    <div style="height: 15px;">订单编号:A1234567</div>
    <div style="margin-top:5px;">
        <img src="${rc.getContextPath()}/manage/leave/barcode?barcode=A1234567" />
    </div>
    <div style="heigth: 10px;margin-top:5px">订单名称：轮胎</div>
</div>
<input type="button" value="打印" onclick="_printForm();"/>
<script>
    function _printForm() {
        var html = document.getElementById("barcodePrint").innerHTML;
        document.body.innerHTML = html;
        window.print();
    }
</script>